home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  2.0 KB  |  117 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Thursday, September 12, 1991 at 11:06 AM
  5.  TerminalTools.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1988-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __TERMINALTOOLS__
  16. #define __TERMINALTOOLS__
  17.  
  18. #ifndef __DIALOGS__
  19. #include <Dialogs.h>
  20. #endif
  21.  
  22. #ifndef __TERMINALS__
  23. #include <Terminals.h>
  24. #endif
  25.  
  26.  
  27. enum {
  28.  
  29.  
  30. #define tdefType 'tdef'
  31. #define tvalType 'tval'
  32. #define tsetType 'tset'
  33. #define tlocType 'tloc'
  34. #define tscrType 'tscr'
  35. #define tbndType 'tbnd'
  36. #define tverType 'vers'
  37.  
  38. /* messages */
  39.  
  40.  tmInitMsg = 0,
  41.  tmDisposeMsg = 1,
  42.  tmSuspendMsg = 2,
  43.  tmResumeMsg = 3,
  44.  tmMenuMsg = 4,
  45.  tmEventMsg = 5,
  46.  tmActivateMsg = 6,
  47.  tmDeactivateMsg = 7,
  48.  tmGetErrorStringMsg = 8,
  49.  
  50.  tmIdleMsg = 50,
  51.  tmResetMsg = 51,
  52.  
  53.  tmKeyMsg = 100,
  54.  tmStreamMsg = 101,
  55.  tmResizeMsg = 102,
  56.  tmUpdateMsg = 103,
  57.  tmClickMsg = 104,
  58.  tmGetSelectionMsg = 105,
  59.  tmSetSelectionMsg = 106,
  60.  tmScrollMsg = 107,
  61.  tmClearMsg = 108
  62. };
  63. enum {
  64.  tmGetLineMsg = 109,
  65.  tmPaintMsg = 110,
  66.  tmCursorMsg = 111,
  67.  tmGetEnvironsMsg = 112,
  68.  tmDoTermKeyMsg = 113,
  69.  tmCountTermKeysMsg = 114,
  70.  tmGetIndTermKeyMsg = 115,
  71.  
  72. /* messages for validate DefProc    */
  73.  tmValidateMsg = 0,
  74.  tmDefaultMsg = 1,
  75.  
  76. /* messages for Setup DefProc    */
  77.  tmSpreflightMsg = 0,
  78.  tmSsetupMsg = 1,
  79.  tmSitemMsg = 2,
  80.  tmSfilterMsg = 3,
  81.  tmScleanupMsg = 4,
  82.  
  83. /* messages for scripting defProc    */
  84.  tmMgetMsg = 0,
  85.  tmMsetMsg = 1,
  86.  
  87. /* messages for localization defProc  */
  88.  tmL2English = 0,
  89.  tmL2Intl = 1
  90. };
  91.  
  92. struct TMSearchBlock {
  93.  StringHandle theString;
  94.  Rect where;
  95.  TMSearchTypes searchType;
  96.  ProcPtr callBack;
  97.  short refnum;
  98.  struct TMSearchBlock *next;
  99. };
  100.  
  101. typedef struct TMSearchBlock TMSearchBlock;
  102. typedef TMSearchBlock *TMSearchBlockPtr;
  103.  
  104. struct TMSetupStruct {
  105.  DialogPtr theDialog;
  106.  short count;
  107.  Ptr theConfig;
  108.  short procID;    /* procID of the tool */
  109. };
  110.  
  111. typedef struct TMSetupStruct TMSetupStruct;
  112. typedef TMSetupStruct *TMSetupPtr;
  113.  
  114.  
  115.  
  116. #endif
  117.